home *** CD-ROM | disk | FTP | other *** search
- Path: news.production.compuserve.com!news
- From: John Carlyle-Clarke <100615.2651@CompuServe.COM>
- Newsgroups: comp.lang.c++
- Subject: Error Handling in C++
- Date: 15 Mar 1996 11:09:05 GMT
- Organization: BPI Communications Ltd.
- Message-ID: <4ibj4h$l0i$1@mhafc.production.compuserve.com>
-
- Can anyone offer any advice on the following problem?
-
- Previously, when using procedural languages, I developed an
- error handling practice where all functions returned an int
- value, zero being no error, and any other value being an error.
- This would cause calling functions to break out and pass the
- value up to the top level, where the error would be dealt with.
- This is of course quite similar to the c++ exception mechanism.
- The only trouble is, my compiler doesnt support it.
-
- As an ex C programmer grappling with OOD, I have looked for
- examples of ways to handle errors, but all the texts and example
- code I have skips error handling pretty much altogether
-
- I know I could use MFC, but I don't like it, and my code has been
- developed without it.
- What I need is for someone to suggest a good method for error
- handling without inbuilt exceptions that reflects the object
- oriented nature of the language, or a way of simulating
- exceptions like the MFC does.
-
- Any help, recommendations or advice greatly appreciated.
-
- John Carlyle-Clarke
-